
	/************************************************************************
	*	Global Variables - Reference
	*	
	*	@brief	This header creates the 'extern' references to the bitfield 
	*			for the the operation and display states.
	*			And also contains other global values.
	*
	*			This file is to be included in any files referencing the global variables
	*			globals.c is included in the main.c file; it creates the global variables
	*
	*	@author		Felix Ossig-Bonanno
	*	@file       globals.h
	*	@ver		1.0 (initial keypad release)
	*
	*************************************************************************/
	
	//Create a structure 4x1bit reflecting the current operation states
	extern struct
		{
			unsigned user 		: 1;
			unsigned metric 	: 1;
			unsigned single	 	: 1;
			unsigned continuous	: 1;
			unsigned celcius 	: 1;
		}Stateflags;
	
	//Create a structure 4x1bit reflecting the current display state
	//Only 1 bit should be high at a time; reflecting what is to be displayed on the LCD display
	extern struct
	{
		unsigned mode 		: 1;
		unsigned dist	 	: 1;
		unsigned temp	 	: 1;
		unsigned range_rds 	: 1;
		unsigned stats	 	: 1;
	}Dispflags;
	

	//other global values
	extern int global_samples_per_measurment 	= 5;
	extern int global_time_between_samples 		= 5;
	extern int global_range_gate 				= 5;
	